package chapter01.principle.lod.improve;
//正确示例：封装调用

class A {
    private B b = new B();
    public void doSomething() {
        b.doWork(); // 通过 B 封装对 C 的调用
    }
}

class B {
    private C c = new C();
    public void doWork() {
        c.doWork();
    }
}

class C {
    public void doWork() {
    }
}